// pages/g211721,38.js
var v0,t,s
var h,g
var v0,g,t,v,theta
var pai=3.14
Page({
  data: {
  },
  getNum1:function(e){
   v0=e.detail.value
    },
  getNum2:function(e){
    t=e.detail.value
  },
  multiplication:function(e){
    s=v0*t
    this.setData({
      result1:s
    })
      },
  getNum3:function(e){
    h=e.detail.value
  },
  getNum4:function(e){
    g=e.detail.value
  },
  square:function(e){
    t=Math.sqrt(h*2/g)
    this.setData({
      result2:t
    })
  },
  
  getNum7:function(e){
    v0=e.detail.value
    },
  getNum8:function(e){
    g=e.detail.value
    },
  getNum9:function(e){
    t=e.detail.value
    },
  V:function(e){
    v=Math.sqrt(v0*v0+g*g*t*t)
    this.setData({
      result4:v
    })
  },
  Theta:function(e){
    theta=Math.atan(g*t/v0)
    this.setData({
      result5:theta
    })
    this.setData({
      result6:theta*(180/pai)
    })
  },
  })